-- GENERATED SPELL FOR [Nethergarde Foreman] --


function spell0_5998(pUnit, Event) --@Battle Command,Self--
pUnit:FullCastSpellOnTarget(5115,pUnit)
pUnit:RegisterEvent('Sorts_5998', 6343, 1)
end

function Sorts_5998(pUnit, Event)
local choix_sorts_5998 = math.random(0, 0)
if choix_sorts_5998 == 0 then
pUnit:RegisterEvent('spell0_5998', 1, 1)
end
end

function mob5998_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5998', math.random(1500, 3000), 1)
end

function mob5998_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5998_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5998_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5998, 1, 'mob5998_Action')
RegisterUnitEvent(5998, 2, 'mob5998_Leave')
RegisterUnitEvent(5998, 3, 'mob5998_Kill')
RegisterUnitEvent(5998, 4, 'mob5998_Die')
